package com.dd.cloud.user.entity.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xt
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "兑换商品表")
public class ConversionGood {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 订单号
     */
    @Column(comment = "订单号", length = 32)
    private String orderNo;

    /**
     * 商品名称
     */
    @Column(comment = "商品名称", length = 32)
    private String goodName;


    /**
     * 商品类型
     */
    @Column(comment = "商品图片", length = 128)
    private String imgUrl;


    /**
     * 商品类型 1.现金 2.话费 3.电话卡
     */
    @Column(comment = "商品类型 1.现金 2.话费 3.电话卡", length = 4)
    private Integer type;

    /**
     * 商品类型 现金 话费 电话卡
     */
    @Column(comment = "商品类型名称(作模糊搜索)", length = 32)
    private String typeName;


    /**
     * 消耗积分
     */
    @Column(comment = "消耗积分")
    private Integer integral;


    /**
     * 买家姓名
     */
    @Column(comment = "买家姓名", length = 32)
    private String buyName;

    /**
     * 医生id/兑换人
     */
    @Column(comment = "医生id")
    private Integer doctorId;


    /**
     * 兑换人账号
     */
    @Column(comment = "兑换人账号")
    private String account;


    /**
     * 兑换手机号
     */
    @Column(comment = "兑换手机号", length = 32)
    private String phone;


    /**
     * 兑换时间
     */
    @Column(comment = "兑换时间")
    private LocalDateTime exchangeDate;


    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;


    /**
     * 状态 1.代发货(兑换中) 2.已发货(兑换成功) 3.已取消 -1.删除
     */
    @Column(comment = "1.代发货(兑换中) 2.已发货(兑换成功) 3.已取消 -1.删除")
    private Integer status;

    /**
     * 更新时间
     */
    @Column(comment = "更新时间")
    private LocalDateTime updateDate;

    /**
     * 更新人
     */
    @Column(comment = "更新人")
    private String updateName;


    /**
     * 商品id
     */
    @Column(comment = "商品id(做数量统计)")
    private Integer goodId;


    /**
     * 规则
     */
    @Column(comment = "规则")
    private String imgTextDesc;


}
